#include <pwd.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


int main(int argc, char *argvs[])
{
	struct passwd *pw;
	
	while((pw=getpwent())!=NULL)
		printf("name=%s, uid=%d, guid=%d, home=%s, shell=%s\n",pw->pw_name,pw->pw_uid,pw->pw_gid, pw->pw_dir, pw->pw_shell);
	endpwent();
	exit(0);	

}
